package demo.wint.web.action;

import java.io.IOException;
import java.util.Date;

import wint.mvc.flow.FlowData;
import wint.mvc.module.annotations.Action;
import wint.mvc.template.Context;
import demo.wint.biz.ao.FirstAO;

public class Index {

	private Date initDate;
	
	private FirstAO firstAO;
	
	private FirstAO firstAO2;
	
	private FirstAO firstAO3;
	
	@Action
	public void execute(Context context, FlowData flowData) throws IOException {
	//	flowData.getWriter().write("hello world!");
		String hello = firstAO.sayHello();
		System.out.println("firstAO2:" + firstAO2);
		System.out.println("firstAO3:" + firstAO3);
		context.put("hello", "你好123aba撒的发萨菲4535，。34（%……36344！21412<script>alert(/aa/);alert('bb');</script>");
	}
	

	public Date getInitDate() {
		return initDate;
	}

	public void setInitDate(Date initDate) {
		this.initDate = initDate;
	}

	public void setFirstAO(FirstAO firstAO) {
		this.firstAO = firstAO;
	}


	public void setFirstAO2(FirstAO firstAO2) {
		this.firstAO2 = firstAO2;
	}


	public void setFirstAO3(FirstAO firstAO3) {
		this.firstAO3 = firstAO3;
	}
	
}
